package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.VoteDao;
import com.ericom.model.Vote;
import com.ericom.service.VoteManager;

@Service("voteManager")
public class VoteManagerImpl extends GenericManagerImpl<Vote, Long> implements
		VoteManager {

	VoteDao voteDao;

	@Autowired
	public VoteManagerImpl(VoteDao voteDao) {
		super(voteDao);
		this.voteDao = voteDao;
	}

	@Override
	public List<Vote> findByTitle(String title) {

		return voteDao.findByTitle(title);
	}

}
